package com.gopay.common.asynexport.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 功能代码枚举类
 */
public enum FunctionCodeEnum {

    FUNCTION_CODE_100("100","交易查询"),
    FUNCTION_CODE_101("101","收款退款查询"),
    FUNCTION_CODE_102("102","结算结果查询"),
    FUNCTION_CODE_103("103","付款查询"),
    FUNCTION_CODE_104("104","付款退款结果查询"),
    FUNCTION_CODE_105("105","线下充值查询"),
    FUNCTION_CODE_106("106","余额查询"),
    FUNCTION_CODE_107("107","客户信息查询"),
    FUNCTION_CODE_108("108","可疑交易管理"),
    FUNCTION_CODE_109("109","人工审核交易查询"),
    FUNCTION_CODE_110("110","安全日志查询"),
    FUNCTION_CODE_111("111","活动数据查询"),
    FUNCTION_CODE_112("112","活动用户查询"),
    FUNCTION_CODE_113("113","自动对账结果查询"),
    FUNCTION_CODE_114("114","风险查询"),
    FUNCTION_CODE_115("115","工作日T+0额度管理查询");


    public String value;
    public String name;
    FunctionCodeEnum(String value,String name) {
        this.value = value;
        this.name = name;
    }

    public static Map<String,String> getFunctionCodeMap() {
        FunctionCodeEnum[] enums = FunctionCodeEnum.values();
        Map<String,String> map = new HashMap<>();
        for (FunctionCodeEnum functionCodeEnum : enums) {
            map.put(functionCodeEnum.value,functionCodeEnum.name);
        }
        return map;
    }

}
